import { ApiSecurityAuth } from '@/common/decorators/swagger.decorator';
import { AntdService } from './antd.service';
import { Body, Controller, Get } from '@nestjs/common';
import { ApiOperation, ApiTags } from '@nestjs/swagger';
import { SkipAuth } from '@/common/decorators/skip-auth.decorator';
// import { EmailSendDto } from './email.dto';

@ApiTags('spider - antd')
@ApiSecurityAuth()
@Controller('antd')
@SkipAuth()
export class AntdController {
  constructor(private antdService: AntdService) {}

  @ApiOperation({ summary: '获取antd icons' })
  @Get('antdIcons')
  async antdIcons(): Promise<void> {
    return await this.antdService.getAntdIcons();
  }
}
